package com.mallsystem.adminservice.mapper;

import com.mallsystem.common.bean.Admin;

import java.util.List;
import java.util.Map;

public interface AdminMapper {
    Admin selectByUsername(String username);

    Admin selectById(Integer id);
    int update(Admin admin);
    //查询所有管理员信息
    List<Admin> selectAll();
    //添加
    int insert(Admin admin);
    //查询前五的分类
    List<Map<String,Integer>> selectCategoryTop5();
    //查询近期订单数量
    List<Map<String,Integer>> selectOrderByDay();

}
